{include file="public/header" /}

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>企业认证</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
<form method="get" name="formSearch" id="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt>客户名称：</dt>
                <dd><input class="txt" name="member_name" id="search_brand_name" value="{$member_name}" type="text"></dd>
            </dl>
            <dl>
                <dt>企业名称：</dt>
                <dd><input class="txt" name="search_brand_name" id="search_brand_name" value="{$search_brand_name}" type="text"></dd>
            </dl>
            <dl>
                <dt>企业类型名称:</dt>
                <dd>
                    <select name="enterprisetype" title="" style="width: 160px;">
                        <option value="">{$Think.lang.ds_please_choose}...</option>
                        {foreach name="enterprisetype" item="v" key="k"}
                        <option value="{$v.id}" {if condition="$enterprisetype_search eq $v.id" }selected{/if}>{$v.name}</option>
                        {/foreach}
                    </select>
                </dd>
            </dl>
            <div class="btn_group">
                <input type="hidden" name="type" value="{$Request.param.type}">
                 <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                 {if $search_brand_name != ''  || $enterprisetype_search != '' ||  $member_name != ''}
                    <a class="btn" href="{:url('Member/enterprise_list',['type'=>'waitverify'])}" title="{$Think.lang.ds_cancel_search}"><span>取消</span></a>
                 {/if}
            </div>
        </div>
        <input type="hidden" value="" name="export">
    </form>
    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th class="w48">{$Think.lang.ds_sort}</th>
            <th>客户名称</th>
            <th>企业名称</th>
            <th>企业类型名称</th>
            <th>联系人姓名</th>
            <th>联系人电话</th>
            <th>联系人职位</th>
            <th class="w200 align-center">申请时间</th>
            <th class="w100 align-center">状态</th>
            <th class="w200 align-center">{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody id="treet1">
        {notempty name="enterprise_list"}
        {foreach name="enterprise_list" item="v" key="k"}
        <tr class="hover edit" id="ds_row_{$v.member_id}">
            <td class="sort">{$k+1}</td>
            <td>{$v.member_name}</td>
            <td>{$v.enterprise_name}</td>
            <td>{$v.name}</td>
            <td>{$v.contact_name}</td>
            <td>{$v.contact_phone}</td>
            <td>{$v.contact_title}</td>
            <td>{$v.enterprise_time}</td>
            <td>
              {if condition="($v.enterprise_status==0)"}
                 未认证
              {elseif condition="($v.enterprise_status!= 0)"}
                 {$enterprise_status[$v['enterprise_status']]}
              {/if}
            </td>
            <td class="align-center">
                {if $v.enterprise_status == 1}
                <!-- 待审核 -->
                    <a href="javascript:dsLayerOpen('{:url('Member/enterprise_detail',['member_id'=>$v.member_id])}','{$Think.lang.ds_verify}-{$v.enterprise_name}','1000px','700px')" class="dsui-btn-view"><i class="iconfont"></i>审核</a>
                    <a href="javascript:dsLayerConfirm('{:url('Member/cancels',['member_id'=>$v.member_id])}','{$Think.lang.affiche_type_ensure_del}',{$v.id});"
                   class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                {else if/}
                     <a href="javascript:dsLayerOpen('{:url('Member/enterprise_info',['member_id'=>$v.member_id])}','{$Think.lang.ds_verify}-{$v.enterprise_name}','1000px','700px')" class="dsui-btn-view"><i class="iconfont"></i>查看详情</a>
                    <a href="javascript:dsLayerConfirm('{:url('Member/cancels',['member_id'=>$v.member_id])}','删除',{$v.id});"
                    class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
            <td colspan="10">{$Think.lang.ds_no_record}</td>
        </tr>
        {/notempty}
        </tbody>
    </table>
</div>